import req from '@/utils/request'

// 获取企业端信息
export function getCustomerBaseInfor(data) {
  return req.get('/api/human/customer/getCustomerBaseInfor', data)
}

// 修改企业端信息
export function updateCustomerBaseInfor(data) {
  return req.post('/api/human/customer/updateCustomerBaseInfor', data)
}

// 获取企业端开票信息
export function getCustomerAccountList(data) {
  return req.get('/api/human/customer/getCustomerAccountList', data)
}

// 获取企业端付款账户信息
export function getCustomerPaymentAccountList(data) {
  return req.get('/api/human/customer/getCustomerPaymentAccountList', data)
}

// 获取企业端地址信息
export function getCustomerAddressList(data) {
  return req.get('/api/human/customer/getCustomerAddressList', data)
}

// 修改企业端开票信息
export function updateCustomerAccounts(data) {
  return req.put('/api/human/customer/updateCustomerAccounts', data)
}

// 修改企业端付款账户信息
export function updateCustomerPaymentAccounts(data) {
  return req.put('/api/human/customer/updateCustomerPaymentAccounts', data)
}

// 修改企业端地址信息
export function updateCustomerAddresss(data) {
  return req.put('/api/human/customer/updateCustomerAddresss', data)
}

// 删除企业端开票信息
export function delCustomerAccount(params) {
  return req.delete('/api/human/customer/delCustomerAccount', { params })
}

// 删除企业端付款账户信息
export function deleteCustomerPaymentAccount(params) {
  return req.delete('/api/human/customer/deleteCustomerPaymentAccount', {
    params
  })
}

// 删除企业端地址信息
export function delCustomerAddresss(params) {
  return req.delete('/api/human/customer/delCustomerAddresss', {
    params
  })
}

// 实名认证
export function certification(data) {
  return req.put('/api/human/customer/certification', data)
}

// 实名认证
export function CustomerReturnUrl(data) {
  return req.post('/api/human/customer/CustomerReturnUrl', data)
}

// 自动签署权限开通
export function openAutoSing(data) {
  return req.put('/api/human/customer/openAutoSing', data)
}

// 自动签署权限开通后通过transaction_id获取客户信息
export function customerAutoSingReturnUrl(data) {
  return req.post('/api/human/customer/customerAutoSingReturnUrl', data)
}
